<?php /* @var $this Controller */ ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
	<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
	<meta name="language" content="en" />
	<script src="<?php echo Yii::app()->request->baseUrl; ?>/../jQuery-1.11.1/jquery-1.11.1.min.js"></script>
	<link rel="stylesheet" href="<?php echo Yii::app()->request->baseUrl; ?>/../bootstrap-3.2.0-dist/css/bootstrap.min.css">
	<script src="<?php echo Yii::app()->request->baseUrl; ?>/../bootstrap-3.2.0-dist/js/bootstrap.min.js"></script>
	<title><?php echo CHtml::encode($this->pageTitle); ?></title>
</head>

<body onload="loadMessage(1)" style="background-image: url(<?php echo Yii::app()->request->baseUrl; ?>/images/background.jpg);background-attachment:fixed;background-color:#777;background-size:cover;background-repeat:no-repeat;opacity:.9">
	<nav class="navbar navbar-default  navbar-fixed-top" role="navigation">
		<!-- Brand and toggle get grouped for better mobile display -->
		<div class="navbar-header">
			<a class="navbar-brand" href="<?php echo Yii::app()->request->baseUrl; ?>/site/index">通知发布系统</a>
		</div>

		<script>
			function loadMessage(auto)
			{
			   $('.badge').load('<?php echo Yii::app()->request->baseUrl;?>/notification/getUnreadCount');
				
			   if (auto==1)
				 setTimeout("loadMessage(1)", 10000);
			}
		</script>
		<div class="collapse navbar-collapse" id="bs-example-navbar-collapse-1">
			
			<?php echo $this->getMenu();?>
			
		</div><!-- /.navbar-collapse -->
	</nav>
	
	<div class="container" style="padding-top:100px;padding-bottom:100px">
		<?php echo $content;?>
	</div><!-- main -->

	<footer class="footer">
	  <div class="navbar navbar-default navbar-fixed-bottom">
			<p style="text-align:center;margin:auto">Powered By WAMP && Yii || Designed By Chair/Jialin</p>
			<p style="text-align:center;margin:auto">Copyright © 2014</p>
	  </div>
	</footer>
</body>
</html>
